package com.lee.lease.web.app.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.lee.lease.model.entity.BrowsingHistory;
import com.lee.lease.web.app.vo.graph.GraphVo;
import com.lee.lease.web.app.vo.history.HistoryItemVo;

import java.util.List;

/**
* @author liubo
* @description 针对表【browsing_history(浏览历史)】的数据库操作Mapper
* @createDate 2023-07-26 11:12:39
* @Entity com.atguigu.lease.model.entity.BrowsingHistory
*/
public interface BrowsingHistoryMapper extends BaseMapper<BrowsingHistory> {

    IPage<HistoryItemVo> findPage(IPage page, Integer id);
    GraphVo findGraphVo(Integer id);

    /**
     * 新增历史浏览记录
     * @param id 房间id
     * @param userId 用户id
     */
    void saveHistory(Integer id, Long userId);
}




